<template>
	<!-- <view v-if="showTime">
		<view class="quanb">
			<view class="tou">
				<view class="beij">
					<image src="../../static/zhengshu/6536.png" mode=""></image>
				</view>
				<view class="ner">
					<view class="keiti" @click="dianji">
						修改信息
					</view>
					<view class="neir">
						<view class="zeif myt">
							<view class="title">
								提现方式：
							</view>
							<view class="name">
								zfb
							</view>
						</view>
						<view class="zeif zj">
							<view class="title">
								姓名：
							</view>
							<view class="name">
								{{ger.aliName}}
							</view>
						</view>
						<view class="zeif">
							<view class="title">
								收款账号：
							</view>
							<view class="name">
								{{ger.aliAccount}}
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="danchu" v-if="shou">
			<view class="zhognija">
				<view class="inut">
					<input class="in" type="text" placeholder="请输入提现人姓名" v-model="name" />
				</view>
				<view class="inut">
					<input class="in" type="text" placeholder="请输入提现账号" v-model="zheng" />
				</view>
				<view class="anniu">
					<view class="qui" @click="dian">
						取消
					</view>
					<view class="que" @click="updateById">
						确认
					</view>
				</view>
			</view>
		</view>
	</view> -->
	<view>
		暂无
	</view>
</template>

<script>
	import {
		modifyTakeInfo
	} from '../../request/api.js'
	export default {
		data() {
			return {
				showTime: true,
				shou: false,
				zheng: '',
				name: '',
				uid: '',
				ger: ''
			}
		},
		onLoad() {

		},
		onShow() {
			this.ger = JSON.parse(uni.getStorageSync('userInfo'))
			console.log(this.ger);
			const targetTime = new Date('2024-10-11 12:00:00');
			const currentTime = new Date();
			if (currentTime < targetTime) {
				this.showTime = false;
			}
		},
		methods: {
			updateById() {
				let that = this
				modifyTakeInfo({
					aliName: this.name,
					aliAccount: this.zheng,
					memberId: this.ger.id
				}).then(res => {
					console.log(res);
					uni.showToast({
						title: res.message,
						icon: 'none',
					})
					if (res.code == 200) {
						this.shou = false
						uni.setStorageSync('userInfo', JSON.stringify(res.result));
						this.ger = res.result
					}
				})
			},
			dianji() {
				this.shou = true
			},
			dian() {
				this.shou = false
			},
		},
	}
</script>

<style scoped lang="less">
	.tou {
		position: relative;
		width: 702rpx;

		border-radius: 16rpx;
		margin: 0 auto;
		margin-top: 56rpx;
		padding-left: 42rpx;
		padding-top: 27rpx;
		padding-right: 29rpx;
		box-sizing: border-box;

		.beij {
			position: absolute;
			top: 0;
			left: 0;
			z-index: -9;
			width: 702rpx;


			image {
				width: 702rpx;

			}
		}

		.ner {
			.keiti {
				text-align: right;

				font-weight: 400;
				font-size: 26rpx;
				color: #FFFFFF;

				font-style: normal;
				text-transform: none;
			}

			.neir {
				.zeif {
					display: flex;

					.title {

						font-weight: 400;
						font-size: 28rpx;
						color: #FFFFFF;

						font-style: normal;
						text-transform: none;
						opacity: 0.6;
					}

					.name {

						font-weight: 400;
						font-size: 32rpx;
						color: #FFFFFF;


						font-style: normal;
						text-transform: none;
					}
				}

				.zj {
					margin-top: 33rpx;
					margin-bottom: 33rpx;
				}

				.myt {
					margin-top: 19rpx;

				}
			}
		}
	}

	.danchu {
		position: absolute;
		top: 0;

		width: 100vw;
		height: 100vh;
		background: rgba(0, 0, 0, 0.2);

		.zhognija {
			width: 602rpx;

			background: #FFFFFF;
			margin: 0 auto;
			margin-top: 300rpx;
			border-radius: 16rpx;
			padding-top: 30rpx;


			.inut {
				width: 500rpx;
				height: 100rpx;
				background: #d9d9d9;
				margin: 0 auto;
				margin-top: 10rpx;
				border-radius: 50rpx;
				padding-left: 50rpx;
				padding-right: 20rpx;
				box-sizing: border-box;

				input {
					height: 100rpx;
				}
			}
		}

		.anniu {
			display: flex;
			margin-top: 30rpx;
			border-top: 1rpx solid #d6d1d6;

			.qui {
				width: 50%;
				height: 100rpx;
				border-right: 1rpx solid #d6d1d6;
				text-align: center;
				line-height: 100rpx;
			}

			.que {
				width: 50%;
				height: 100rpx;
				text-align: center;
				line-height: 100rpx;
			}
		}
	}
</style>